<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>FileBuffersSize</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">FileBuffersSize()</font></b></p>
<p><b>语法</b></p><blockquote>
<font color="#006666"><b>FileBuffersSize</b></font>(#File, Size)</blockquote>

</blockquote>
<b>概要</b><br><blockquote>



Changes the size of the memory buffer used for file operations. 

 

</blockquote><p><b>参数</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>#File</i></td>
<td width="90%"> 
 
The file to change. If <font color="#924B72">#PB_Default</font> is used as this parameter then the 
new buffer size will apply to all newly opened files with <a href="openfile.html">OpenFile()</a>, 
<a href="createfile.html">CreateFile()</a> or <a href="readfile.html">ReadFile()</a>. 

 

</td></tr>
<tr><td><i>Size</i></td>
<td> 
 
The new size (in bytes) for the memory buffer. A size of 0 disables memory buffering on the file. 

 

</td></tr>
</table>
</blockquote><p><b>返回值</b></p><blockquote>
无.


</blockquote><p><b>Remarks</b></p><blockquote>



For performance reasons, the buffer size should be kept large enough (1028 seems 
to be ok as a minimum). When buffers are used, the information is really written to the disk once the 
cache buffer is full or when the file is closed. The <a href="flushfilebuffers.html">FlushFileBuffers()</a> function 
forces the cache buffer to be written at the time the function is called. 
The default buffer size is 4096 bytes per file. 

 

</blockquote><p><b>参阅</b></p><blockquote>

<a href="flushfilebuffers.html">FlushFileBuffers()</a> 

</Blockquote><p><b>已支持操作系统 </b><Blockquote>所有</Blockquote></p><center>&lt;- <a href=eof.html>Eof()</a> - <a href=index.html>File Index</a> - <a href=fileid.html>FileID()</a> -&gt;



</body></html>